package fic.storefinder.shared;

@SuppressWarnings("serial")
public class StoreFinderServiceException extends Exception {
	
	public static final int ERROR_CODE_MISSING_PARAMETER = 100;
	public static final int ERROR_CODE_INVALID_PARAMETER = 200;
	
	private int errorCode;
	
	public StoreFinderServiceException(String message, int errorCode) {
		super(message);
		this.errorCode = errorCode;
	}

	public int getErrorCode() {
		return errorCode;
	}
	
	public String getFormattedMessage() throws Exception {
		return this.getMessage();
	}

	
}
